//
//  LanguageManager.h
//  YMDrawingBoard
//
//  Created by 刘家俊 on 2020/12/3.
//  Copyright © 2020 余默. All rights reserved.
//

#import <Foundation/Foundation.h>

//定义宏，方便使用
#define langIter(str) [[LanguageManager shareManager] ym_languageInternation:str]

NS_ASSUME_NONNULL_BEGIN

@interface LanguageManager : NSObject

+ (instancetype)shareManager;

//当前语言id
- (NSString *)ym_currentLanguageId;

/**
 获取国际化文字

 @param string 对应的中文字符串
 @return 国际化字符串
 */
- (NSString *)ym_languageInternation:(NSString *)string;
/** 更换语言   */
- (void)ym_changeLanguage:(NSString *)languageId;

@end

NS_ASSUME_NONNULL_END
